﻿
namespace LogAnalyzer
{
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Windows;
    using System.Linq;

    public partial class MainWindow : Window
    {
        private MainWindowViewModel viewModel;

        public MainWindow()
        {
            this.viewModel = new MainWindowViewModel();
            this.DataContext = viewModel;
            InitializeComponent();
            this.AddNewPerson.Click += AddNewPersonClick;
        }

        private void AddNewPersonClick(object sender, RoutedEventArgs e)
        {
            //this.viewModel.CreatePerson();
            this.viewModel.Next();
        }

        private void AddNewEdgeClick(object sender, RoutedEventArgs e)
        {
            this.viewModel.CreateEdge();
        }        
    }
}
